package com.entity;

import java.time.LocalDateTime;

public class Notice {
    private String nid;
    private String title;
    private String content;
    private String author;
    private LocalDateTime dateTime;
    private String imageurl;

    public Notice() {

    }

    public Notice(String nid, String title, LocalDateTime dateTime) {
        this.nid = nid;
        this.title = title;
        this.dateTime = dateTime;
    }

    public Notice(String nid, String title, String content, String author, LocalDateTime dateTime,String imageurl) {
        this.nid = nid;
        this.title = title;
        this.content = content;
        this.author = author;
        this.dateTime = dateTime;
        this.imageurl = imageurl;
    }

    public String getNid() {
        return nid;
    }

    public void setNid(String nid) {
        this.nid = nid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public LocalDateTime getDateTime() {
        return dateTime;
    }

    public void setDateTime(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }

    public String getImageurl() {
        return imageurl;
    }

    public void setImageurl(String imageurl) {
        this.imageurl = imageurl;
    }
}
